🌎 rns.kin.earth git 🌍
Commit 93526c17f54528d3aa6019a71aa1893202242229
Parents : 6d4523c
Author : Mark Qvist <bc7291552be7a58f361522990465165c>
Signature : T66BB85Valid, signed by author
Date : 2026-07-23T17:52:45+02:00
Added rebalanced time to links
Changes
Diff
diff --git a/RNS/Transport.py b/RNS/Transport.py
index 54a5e319..acbdd7a4 100755
--- a/RNS/Transport.py
+++ b/RNS/Transport.py
@@ -2294,11 +2294,11 @@ class Transport:
signature = packet_data[:RNS.Identity.SIGLENGTH//8]
if link.destination.identity.validate(signature, signed_data):
- RNS.log(f"Re-balancing path to {RNS.prettyhexrep(link.destination.hash)} at link terminus ({link.expected_hops}->{packet.hops})", REBALANCE_LOGLEVEL) if RNS.sl(REBALANCE_LOGLEVEL) else None
- link.expected_hops = packet.hops
with Transport.path_table_lock:
if not link.rebalanced:
+ RNS.log(f"Re-balancing path to {RNS.prettyhexrep(link.destination.hash)} at link terminus ({link.expected_hops}->{packet.hops})", REBALANCE_LOGLEVEL) if RNS.sl(REBALANCE_LOGLEVEL) else None
link.rebalanced = time.time()
+ link.expected_hops = packet.hops
if link.destination.hash in Transport.path_table:
path_entry = Transport.path_table[link.destination.hash]
path_entry[IDX_PT_HOPS] = packet.hops
Served by rngit 1.5.0 - Generated in 0.07s